package dataImport.model;

public enum StaticAction {

	CREATEOBJECT("createObject"), CREATESTATE("createState"),

	DESTROYOBJECT("destroyObject"), DESTROYSTATE("destroyState"),

	ACTIVATEACTION("activateAction"), DEACTIVATEACTION("deactivateAction"),

	REMOVEPLACE("removePlace"), ADDPLACE("addPlace");

	// TODO START_DIALOG;

	private String name;

	StaticAction(final String name) {
		this.name = name;
	}

	public static final boolean contains(final String staticActionName) {
		try {
			valueOf(staticActionName.toUpperCase());
		}
		catch (Exception e) {
			return false;
		}

		return true;
	}

	public static final StaticAction get(final String staticActionName) {
		return valueOf(staticActionName.toUpperCase());
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}
}
